package com.rjt.article.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="article_content")
public class ArticleContentModel {
	@Id
	private String id;
	
	private String title;
	
	private String content;
	
	private String author;
	
	private String openRead;
	
	private String openComment;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date createDate;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}


	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}


	public String getOpenRead() {
		return openRead;
	}

	public void setOpenRead(String openRead) {
		this.openRead = openRead;
	}

	public String getOpenComment() {
		return openComment;
	}

	public void setOpenComment(String openComment) {
		this.openComment = openComment;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	
	
}
